package com.atguigu.assionexcel.invoke;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.atguigu.assionexcel.entity.User;
import lombok.extern.slf4j.Slf4j;

/**
 * @author senior
 * @create 2021-11-09 21:23
 */
@Slf4j
public class MyListenner extends AnalysisEventListener<User> {
    @Override
    public void invoke(User user, AnalysisContext analysisContext) {
        log.info("一条数据被读取了");
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        log.info("所有数据解析完成");
    }
}
